package com.japhet.htmljsp.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class ToController {

    @GetMapping("/cron")
    public String testThemleaf(Model model) {
        model.addAttribute("msg", "我是后台传过来的值 html");
        return "templates/index";
    }

}